# -*- coding: utf-8 -*-

from service import Service

class TickService(Service):
    SERVICE_ID = 105

    def __init__(self):
        super(TickService, self).__init__(TickService.SERVICE_ID)
        commands = {
            1001:self.tickResponse,
        }
        self.registers(commands)

    def tickResponse(self, msg):
        msg['sendType'] = 1
        return msg